package com.bwda.dsrs.filecenter.domain.vo.registerkey;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * @author Administrator
 */
@Data
@ApiModel(description = "秘钥注册管理")
public class RegisterKeyVo {

	@ApiModelProperty(value = "注册秘钥id", required = true)
	private Integer registerKeyId;

	@ApiModelProperty(value = "注册秘钥名称")
	private String registerKeyName;

	@ApiModelProperty(value = "算法(SM4,AES,3DES,RSA,SM2)")
	private String algorithm;

	@ApiModelProperty(value = "场景编号(默认0全部，以系统编号开头，不可修改)")
	private String sceneCode;

	@ApiModelProperty(value = "场景名称")
	private String sceneName;

	@ApiModelProperty(value = "应用系统ID")
	private Integer appId;

	@ApiModelProperty(value = "秘钥规则ID")
	private Integer keyRuleId;

	@ApiModelProperty(value = "有效期天数0始终有效")
	private Integer validdays;

	@ApiModelProperty(value = "秘钥提前提醒天数")
	private Integer warnDays;

	@ApiModelProperty(value = "生效时间")
	private Date effectiveTime;

	@ApiModelProperty(value = "预计失效时间")
	private Date failureTime;

	@ApiModelProperty(value = "负责人编号")
	private String respUserCode;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	@ApiModelProperty(value = "创建人")
	private String createUserCode;

	@ApiModelProperty(value = "生成的秘钥")
	private String secretKey;

	@ApiModelProperty(value = "版本")
	private String currentVersion;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "规则名称")
	private String ruleName;

	@ApiModelProperty(value = "应用名称")
	private String appName;

	/**
	 * 最小长度
	 */
	private Integer minLength;
	/**
	 * 最大长度
	 */
	private Integer maxLength;
	/**
	 * 正则表达式
	 */
	private String regularExpression;
	/**
	 * 是否支持模糊搜索 0：不支持 1：支持
	 */
	private Integer ifSearch;
	/**
	 * 是否更新秘钥（0：不跟新 1：更新）
	 */
	private Integer ifUpdateKey;

	/**
	 * 秘钥—场景标识
	 */
	private String keySceneCode;
    /**
     * 是否默认 1：默认  0 不默认
     */
	private Integer  defaultLabel;
}